package com.itmate.service;

import com.itmate.entity.Users;
import com.itmate.dao.UsersDao;
import java.util.List;

public class UsersService {

	private UsersDao UsersDao =new UsersDao();
	
	//用户登录
	public boolean login(Users u) {
		return UsersDao.login(u);
	}
	
	//用户注册
	public int addUser(Users u) {
		return UsersDao.addUser(u);
	}
	
	//判断用户是否存在
	public boolean isExist(Users u) {
		return UsersDao.isExist(u);
	}
}
